package com.epam.avtobaza.modules;

public class Trip {
	// contains information about trip
	private int id;
	private String startPoint;
	private String endPoint;

	private Trip(String start, String end) {
		this.startPoint = start;
		this.endPoint = end;
	}

	public String getStartPoint() {
		return startPoint;
	}

	public String getEndPoint() {
		return endPoint;
	}

	public void setStartPoint(String startPoint) {
		this.startPoint = startPoint;
	}

	public void setEndPoint(String endPoint) {
		this.endPoint = endPoint;
	}

	public int getId() {
		return id;
	}

	public String getName() {
		// full name of the trip
		return startPoint + " - " + endPoint;
	}
}
